package problema020;

import java.math.BigInteger;

public class SumaFact {
		
		public static void main(String[] args){
			System.out.println(sumaFact100());
		}
		
		public static int sumaFact100(){
			String s;
			int res = 0;
			BigInteger num = new BigInteger("1"), act;
			for(Integer i = 1; i <= 100; i++){
				s = i.toString();
				act = new BigInteger(s);
				num = act.multiply(num);
			}
			String val = num.toString();
			for(int i = 0; i < val.length(); i++){
			    res += val.charAt(i) - 48;
			}			
			return res;
		}
}
